package chap3_11;

import java.util.Scanner;

public class Exer3_11_6 {
    public static void main(String[] args) {
        int[]num={2,4,5,5,7,7,8,8,9,9,1,23,13,13,1};
        Scanner input =new Scanner(System.in);
        System.out.println("请输入一个数：");
        int a=input.nextInt();
        int count =0;
        for(int i=0;i<num.length;i++){
            if(num[i]==a){
                count++;
            }
        }
        System.out.println(a+"在数组中出现了"+count+"次");
    }
}
